<div ms-controller="receiveReceipt" class="receive-receipt">
  <p class="path">您现在的位置为：<span ms-text="@breadcrumb">固办-领用单管理</span></p>
  <!--<p class="info">-->
  <!--<img src="img/index/u423.png" alt="" class="title-img"/>-->
  <!--<span class="title">检索信息</span>-->
  <!--</p>-->
  <form class="form-inline" onsubmit="return false;">
    <div class="form-group" ms-if="!@showQuery || @isGYKS">
      <label for="entryStartDate">录入时间：</label>
      <input ms-duplex="@entryStartDate" type="text" class="form-control" id="entryStartDate" placeholder="" readonly>~
      <input
        type="text" class="form-control" ms-duplex="@entryEndDate" id="entryEndDate" placeholder="" readonly>
    </div>
    <div class="form-group" ms-if="(@showQuery && !@isGYKS ) || @BillType === 'qxxd'">
      <label for="sendStartDate" ms-text="@showFirstTimeName()">发送时间：</label>
      <input ms-duplex="@sendStartDate" type="text" class="form-control" id="sendStartDate" placeholder="" readonly>~
      <input
        type="text" class="form-control" ms-duplex="@sendEndDate" id="sendEndDate" placeholder="" readonly>
    </div>
    <div class="form-group" ms-if="@showQuery">
      <label for="outStartDate" ms-text="@showSecondTimeName()">出库时间：</label>
      <input ms-duplex="@outStartDate" type="text" class="form-control" id="outStartDate" placeholder="" readonly>~
      <input
        type="text" class="form-control" ms-duplex="@outEndDate" id="outEndDate" placeholder="" readonly>
    </div>
    <div class="form-group" ms-if="@BillType !== 'sq'">
      <label for="inputAccount" ms-text="@inputAccountLabelName"></label>
      <input ms-keydown="@chooseDept | enter" ms-duplex="@inputAccount" type="text" class="form-control" id="inputAccount" ms-attr="{disabled: !@isProviderDept}"
        placeholder="" maxlength="20">
    </div>
    <div class="form-group" ms-if="@showKsGroup">
      <label for="ksGroup">科室组合：</label>
      <input ms-keydown="@chooseDeptGroup | enter" ms-duplex="@ksGroup" type="text" class="form-control" id="ksGroup" ms-attr="{disabled: !@isProviderDept}"
        placeholder="" maxlength="20">
    </div>
    <div class="form-group" ms-if="@BillType !== 'sq'">
      <label for="status">单据状态：</label>
      <select class="form-control" name="" id="status" ms-duplex="@status">
                <option value="null">全部状态</option>
                <option ms-for="el in @statusArr"
                        ms-attr="{value : el.value}">{{el.text}}
                </option>
            </select>
    </div>
    <div class="form-group" ms-if="@showBillSN">
      <label for="BillSN">单据流水号：</label>
      <input ms-duplex="@BillSN" type="text" class="form-control" id="BillSN" maxlength="20" placeholder="">
    </div>
    <div class="form-group" ms-if="!@isGYKS && @BillType === 'ly' && !@IsQuery">
      <label for="AdditionalReasonType">来源类型：</label>
      <select ms-duplex="@AdditionalReasonType" class="form-control" name="" id="AdditionalReasonType">
                <option value="null">全部</option>
                <option value="zc" selected>正常</option>
                <option value="cf">冲负</option>
                <option value="bcj">补差价</option>
            </select>
    </div>
    <div class="form-group">
      <button type="button" class="btn btn-sm btn-primary" ms-click="@search">查询</button>
      <button type="button" class="btn btn-sm btn-primary last" ms-click="@handleNewSunBill" ms-attr="{disabled:!@hasInputAuth}">新建单据
            </button>
      <button type="button" class="btn btn-info btn-sm last" ms-click="@back">返回</button>
    </div>
  </form>
  <div class="table-container">
    <xmp cached="true" ms-widget="{is:'ms-tableFixed',id:@tableComponentsID[0],header:@columnNames,row:@columnValueNames,sourceData:@bills,height:'360',showPages:true,showClickClass:true,showOperation:true,parentHandleClickFun:@viewDetail,operateHtml:@operateHtml,operateWidth:165,operateCustomEvent:@operateCustomEvent,elementID:'billList'}"></xmp>
  </div>
  <div class="table-container" ms-visible="@IsQuery" style="margin-top: 12px">
    <xmp cached="true" ms-widget="{is:'ms-tableFixed',id:@tableComponentsID[1],header:@detailColumnNames,row:@detailColumnValueNames,data:@billDetails,height:'250',showClickClass:true,elementID:'billListDetail'}"></xmp>
  </div>
  <div id="billListPage"></div>
  <div class="clear"></div>
  <div class="footer">
    <!--<span class="result">查询结果：<span ms-text="@count"></span>条</span>-->
    <div class="color-desc">
      <span>颜色说明：</span>
      <ul ms-html="@colorDescription">
      </ul>
    </div>
    <div class="clear"></div>
  </div>
</div>